/*
 * cFuego.h
 *
 *  Created on: Nov 8, 2014
 *      Author: root
 */

#ifndef CFUEGO_H_
#define CFUEGO_H_

#include "../manejadorGrilla.h"

#include "../clasesAuxiliares/SocketCommunication.h"

class cFuego {
public:
	char id[10];
	int x;
	int y;
	int height;
	int witdh;
	int type;
	int sentido;
	bool fin;
	SocketCommunication * socket_J1;
	SocketCommunication * socket_J2;


	void mover(manejadorGrilla &grilla);
	void Desactivar();
	void InicializarFijo(manejadorGrilla &grilla, int x, int y, int,SocketCommunication *, SocketCommunication *);
	void InicializarAleatorio(manejadorGrilla &grilla, int,SocketCommunication *, SocketCommunication *);
	cFuego();
	virtual ~cFuego();

private:
	int saltoMovimiento;
	int nextRand;
	void saltando(int);
	int getRandom();

};

#endif /* CFUEGO_H_ */
